package com.eorchis.module.interioruser.ui.commond;

import java.io.Serializable;

import com.eorchis.core.basedao.entity.IBaseEntity;
import com.eorchis.core.ui.commond.ICommond;
import com.eorchis.module.interioruser.domain.InteriorUser;
import com.eorchis.module.user.domain.User;

import org.hibernate.validator.constraints.NotBlank;


/**
 * Title: InteriorUserValidCommond<br>
 * Description: 内部用户ValidCommond<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author Administrator
 * @createDate 2015-01-04
 * @version $Revision$
 */
public class InteriorUserValidCommond implements ICommond {
	
	private InteriorUser interiorUser;
	private String classId;//班级id
	private String loginId;//登录号
	private String deptId;//部门id
	
	public InteriorUserValidCommond(){
		interiorUser = new InteriorUser();
	}
	
	public InteriorUserValidCommond(InteriorUser interiorUser){
		this.interiorUser = interiorUser;
	}

	public Serializable getEntityID() {
		return interiorUser.getUserid();
	}

	@Override
	public IBaseEntity toEntity() {
		return interiorUser;
	}

	/**
	 * 获取用户id
	 */	
	@NotBlank
	public String getUserid() {
		return interiorUser.getUserid();
	}
	/**
	 * 设置用户id
	 */		
	public void setUserid(String userid) {
		interiorUser.setUserid(userid);
	}
	/**
	 * 获取用户名称
	 */	
	public String getUserName() {
		return interiorUser.getUserName();
	}
	/**
	 * 设置用户名称
	 */		
	public void setUserName(String userName) {
		interiorUser.setUserName(userName);
	}
	/**
	 * 获取外部用户
	 */	
	public User getUser() {
		return interiorUser.getUser();
	}
	/**
	 * 设置外部用户
	 */		
	public void setUser(User user) {
		interiorUser.setUser(user);
	}

	public String getClassId() {
		return classId;
	}

	public void setClassId(String classId) {
		this.classId = classId;
	}

	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	
	
	
	
}
